<template>
	<view class="msg">
		<view class="uni-page-head-title uni-title">当前暂无记录</view>
		<!-- <view class="uni-list" v-show="!flag">
			<view class="uni-list-cell" v-for="(item,index) in list" :key="index">
				<view class="uni-list-cell-navigate uni-navigate-right">
					{{item.value}}
				</view>
			</view>
		</view> -->
	</view>
</template>

<script>
	import {apiTypeInfo} from '@/common/api.js'
	export default{
		data(){
			return {
				flag:false,
				item:[]
			}
		},
		onLoad() {
			uni.showLoading({
				title: '数据加载中..',
				mask: true
			});
			apiTypeInfo({
				'type':'daily'
			}).then(res=>{
				uni.hideLoading()
				this.item = res.data
			}).catch(err=>{
				uni.hideLoading()
				this.flag = true
				this.toast(err.data.msg)
			})
		},
		methods:{
			toast(title,icon='none'){
				uni.showToast({
					title: title,
					mask: true,
					icon:icon,
					duration: 1500
				});
			}
		}
	}
</script>

<style>
	.msg{
		width: 100%;
		display: flex;
		margin-top: 30%;
		align-items: center;
		justify-content: center;
	}
</style>
